public class 代码 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int num = a > b? b:a;
        System.out.println(num);
    }
    public static void main13(String[] args) {
        System.out.println(7%3);
        System.out.println(-7%3);
        System.out.println(7%-3);
        System.out.println(-7%-3);

    }
    public static void main12(String[] args) {
        int num = 10;
        String s1 = num+"";
        System.out.println(s1);
        String s2 = String.valueOf(num);
        System.out.println(s2);


    }
    public static void main11(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println("a ="+a);
        System.out.println("b ="+b);
        System.out.println("a + b ="+(a+b));

    }
    public static void main10(String[] args) {
        String str = "hello";
        System.out.println(str);
        String str1 = "world";
        System.out.println(str1);
        String str2 = str + str1;
        System.out.println(str2);

    }
    public static void main9(String[] args) {
        byte a = 10;
        byte b = 20;
        int c = a + b;
        System.out.println(c);
        byte d = (byte)(a + b);
        System.out.println(d);

    }
    public static void main8(String[] args) {
        char a = '中';
        System.out.println(a);
    }
    public static void main7(String[] args) {
        float a = 1.0F;
        System.out.println(a);
        System.out.println(Float.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);
    }
    public static void main6(String[] args) {
        double a = 1.0;
        double b = 2.0;
        System.out.println(a/b);
        double num = 1.1;
        System.out.println(num*num);
    }
    public static void main5(String[] args) {
        char a ='A';
        System.out.println(a);
        System.out.println(Character.MAX_VALUE);
        System.out.println(Character.MIN_VALUE);
    }
    public static void main4(String[] args) {
        double a =2.0;
        System.out.println(a);
        System.out.println(Double.MAX_VALUE);
        System.out.println(Double.MIN_VALUE);
    }
    public static void main3(String[] args) {
        long a =100L;
        System.out.println(a);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);

    }
    public static void main2(String[] args) {
        short a = 10;
        System.out.println(a);
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);

    }
    public static void main1(String[] args) {
        int a = 10;
        System.out.println(a);
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

    }
}
